import { createApp, reactive } from "petite-vue"
import Calc from "./Calc"

window.store = reactive({
    discount: 50
})

let effects = {
    'sum, input': (sum, input) => {
        document.querySelector('#out-of-petite-vue i').textContent = sum
        document.querySelector('#out-of-petite-vue span').textContent = input
    }
}

createApp({
    Calc: Calc(window.store, effects)
}).mount('body')
